Skip to content

refactor(plugin): inline mcpServers config and remove .mcp.json#29

Merged
aeneasr merged 1 commit intomainfrom
remove-mcp-json
Mar 4, 2026
Merged

refactor(plugin): inline mcpServers config and remove .mcp.json#29
aeneasr merged 1 commit intomainfrom
remove-mcp-json

Conversation

@aeneasr
Copy link
Member

@aeneasr aeneasr commented Mar 4, 2026

Summary

  • Moves MCP server configuration from .mcp.json inline into .claude-plugin/plugin.json
  • Removes .mcp.json to prevent Claude Code from auto-loading it as a project-level MCP config when developing the plugin

Why

When working on the plugin codebase in Claude Code, the project-level .mcp.json was auto-loaded, causing the ${CLAUDE_PLUGIN_ROOT} variable to remain unresolved (only substituted in plugin context). Moving the config inline in plugin.json eliminates the conflict — the MCP server only loads when the plugin is installed and enabled.

Test plan

  • Verify claude --plugin-dir . still loads the MCP server correctly
  • Verify opening the repo in Claude Code no longer triggers MCP server auto-load

🤖 Generated with Claude Code

Moves MCP server configuration from .mcp.json into plugin.json to
prevent Claude Code from auto-loading it as a project-level MCP config
when developing the plugin.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aeneasr aeneasr merged commit f6c800d into main Mar 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant